package jh.com.jhappbf.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;

import jh.com.jhappbf.R;

/**
 * @author Administrator
 */
public class WelCome extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.welcome_activity);
		Handler handler =new Handler();
		handler.postDelayed(() -> {
			Intent intent = new Intent(WelCome.this,Main.class);
			startActivity(intent);
			overridePendingTransition(R.anim.translate_in, R.anim.translate_out);
			WelCome.this.finish();
		}, 3000);
	}
}
